#include <cstdlib>
#include <iostream>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>

#include "structure.h"
#include "headers.h"
#include "constantes.h"


  void player (Tools *T)
  {

  	SDL_WaitEvent(&T->event);
     switch(T->event.type)
     {
     	case SDL_QUIT :T->done = false; break;

     	case SDL_KEYUP:

     	switch(T->event.key.keysym.sym)
     	{
     		case SDLK_1:T->nb_Remove_Match =1;
			     break;
			case SDLK_2:T->nb_Remove_Match =2;
			     break;
			case SDLK_3:T->nb_Remove_Match =3;
			     break;
			default:     /*    */
			     break;
     	}
		break;

		default:T->nb_Remove_Match = 0;
		break;
     }
  }





